package com.lhz.framework.manager.threadManager;


import com.lhz.framework.config.ThreadPoolConfig;
import com.lhz.framework.manager.threadManager.factory.AsyncBean;
import lombok.Getter;

/**
 * @author lihuazhi
 */
public abstract class BaseThreadManager implements Runnable {

    @Getter
    public final AsyncBean asyncBean;

    public final Object obj;

    public BaseThreadManager(AsyncBean asyncBean, Object obj) {
        // 将当前线程对象加入到map中
        ThreadPoolConfig.CONSOLE_THREAD_MAP.put(asyncBean.getThreadId(), Thread.currentThread());
        this.asyncBean = asyncBean;
        this.obj = obj;
    }

    @Override
    public void run() {

    }
}
